<template>
	<view class="">
		<u-navbar :autoBack="true" leftIconColor="#fff" title="套餐权益" :bgColor="theme == 'light' ? '#0071ff' : '#2c2c2c'"
			:safeAreaInsetTop="true" :placeholder="true" titleStyle="color:#fff">
		</u-navbar>
	

		<view class="main">
			<view class="cu-list menu-avatar" style="margin:10px;border-radius: 10px;"
				v-for="item,index in pkgLegalList" :key="index">
				<view class="cu-item">
					<!-- <view class="cu-avatar round lg">
						<u--image :showLoading="true" :src="baseImg + pkgImg" width="55px" height="55px"
							radius="5rpx"></u--image>
					</view> -->
					<view class="content" style="left: 40rpx;">
						<view class="text-grey" style="font-size: 24rpx;">包含 ： {{item.pkgLegalName}}</view>
						<view class="text-gray text-sm flex">
							<!-- <view class="text-cut text-color">
								{{item.pkgName}}
							</view> -->
							<view class="text-cut text-color">
								{{item.createTime}}
							</view>
						</view>
					</view>
					<view class="action" style="width: 150rpx;">
						<!-- <view class="cu-tag round bg-grey sm">￥{{item.pkgPrice}}</view> -->
						<view class="text-grey text-xs">{{item.remark}}</view>

					</view>
				</view>
			</view>
		</view>


	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex'

	export default {
		data() {
			return {
				pkgLegalList: [],
				pKid: null,
				pkgImg: null,
				show: false,

				
			}
		},
		computed: {
			...mapState(['theme', ])

		},
		onLoad(options) {
			console.log(JSON.parse(options.list));
			if(options.list){
				this.pkgLegalList = JSON.parse(options.list)
			}
		},

		methods: {
			
			
		}

	};
</script>

<style lang="scss" scoped>
	.main {
		height: calc(100vh - 120rpx);
		overflow-y: scroll;

		.header {
			height: 240rpx;
			background-color: #016fd6;
			margin: 20rpx;
			border-radius: 40rpx;
			color: white;
			display: flex;
			padding: 10rpx;

			.title {
				width: 500rpx;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: space-evenly;

				.z {
					font-weight: bold;
					font-size: 40rpx;
				}
			}

			.price {
				width: 180rpx;
				display: flex;
				flex-direction: column;
				justify-content: center;
			}
		}
	}


	.btn {
		margin: 20rpx;
		position: fixed;
		bottom: 30rpx;
		width: calc(100% - 40rpx);
	}
</style>